package com.random.fox.whatspay.bean;

import java.util.List;

/**
 * 账户，一个账户只能对应一种币种
 * Created by 渠 on 2014/9/13.
 */
public class Account {
    /**
     * 账户币种
     */
    private Unit unit;
    /**
     * 消费记录
     */
    private List<Cost> costList;
    /**
     * 账户ID
     * 不允许有太多账户，所以此处用short类型记录
     */
    private long id;

    /**
     * 账户名
     */
    private String name = "默认账户";
    public Account(Unit unit){
        this.unit = unit;
    }

    public Unit getUnit() {
        return unit;
    }

    public void setUnit(Unit unit) {
        this.unit = unit;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public List<Cost> getCostList() {
        return costList;
    }

    public void setCostList(List<Cost> costList) {
        this.costList = costList;
    }
}
